/**
 * 实体查询参数类型
 */
export interface TableQueryParam extends PageQuery {
    edgeId?: string;
    entityTypeList?: string[];
    values?: object;
}

export interface EntityFiled extends Entity {
    name: string;
    type: string;
    key: string;
    format: string;
}

/**
 * 实体分页列表项
 */
export interface EntityTable extends Entity {
    name: string;
    model: string;
    serviceKey: string[];
    fields: EntityFiled[];
    collectionName: string;
}

/**
 * 实体列表类型
 */
export type EntityTableListResult = EntityTable[];

/**
 * 实体分页项类型
 */
export type EntityTablePageResult = PageResult<EntityTable[]>;

/**
 * 实体表单类型：代表一个用于增删改查的临时对象
 */
export interface SchemaFormData extends EntityTable {
    // 表单状态
    sort: number;
    status: number;
}

